Optimal. Leaf size=286 \[ \frac{\sin ^{-1}(d x) \left (2 d^2 \left (A \left (4 d^2 e^2+f^2\right )+2 B e f\right )+C \left (2 d^2 e^2+f^2\right )\right )}{16 d^5}+\frac{x \sqrt{1-d^2 x^2} \left (2 d^2 \left (A \left (4 d^2 e^2+f^2\right )+2 B e f\right )+C \left (2 d^2 e^2+f^2\right )\right )}{16 d^4}+\frac{\left (1-d^2 x^2\right )^{3/2} \left (8 \left (C \left (d^2 e^3-4 e f^2\right )-2 f \left (5 A d^2 e f+B \left (d^2 e^2+f^2\right )\right )\right )-3 f x \left (5 f^2 \left (2 A d^2+C\right )-2 d^2 e (C e-2 B f)\right )\right )}{120 d^4 f}+\frac{\left (1-d^2 x^2\right )^{3/2} (e+f x)^2 (C e-2 B f)}{10 d^2 f}-\frac{C \left (1-d^2 x^2\right )^{3/2} (e+f x)^3}{6 d^2 f} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.18619, antiderivative size = 286, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 37, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.162 \[ \frac{\sin ^{-1}(d x) \left (2 d^2 \left (A \left (4 d^2 e^2+f^2\right )+2 B e f\right )+C \left (2 d^2 e^2+f^2\right )\right )}{16 d^5}+\frac{x \sqrt{1-d^2 x^2} \left (2 d^2 \left (A \left (4 d^2 e^2+f^2\right )+2 B e f\right )+C \left (2 d^2 e^2+f^2\right )\right )}{16 d^4}+\frac{\left (1-d^2 x^2\right )^{3/2} \left (8 \left (C \left (d^2 e^3-4 e f^2\right )-2 f \left (5 A d^2 e f+B \left (d^2 e^2+f^2\right )\right )\right )-3 f x \left (5 f^2 \left (2 A d^2+C\right )-2 d^2 e (C e-2 B f)\right )\right )}{120 d^4 f}+\frac{\left (1-d^2 x^2\right )^{3/2} (e+f x)^2 (C e-2 B f)}{10 d^2 f}-\frac{C \left (1-d^2 x^2\right )^{3/2} (e+f x)^3}{6 d^2 f} \]
Antiderivative was successfully verified.
[In] Int[Sqrt[1 - d*x]*Sqrt[1 + d*x]*(e + f*x)^2*(A + B*x + C*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 94.0848, size = 282, normalized size = 0.99 \[ - \frac{C \left (e + f x\right )^{3} \left (- d^{2} x^{2} + 1\right )^{\frac{3}{2}}}{6 d^{2} f} - \frac{\left (e + f x\right )^{2} \left (2 B f - C e\right ) \left (- d^{2} x^{2} + 1\right )^{\frac{3}{2}}}{10 d^{2} f} + \frac{x \sqrt{- d^{2} x^{2} + 1} \left (8 A d^{4} e^{2} + 2 A d^{2} f^{2} + 4 B d^{2} e f + 2 C d^{2} e^{2} + C f^{2}\right )}{16 d^{4}} - \frac{\left (- d^{2} x^{2} + 1\right )^{\frac{3}{2}} \left (240 A d^{2} e f^{2} + 48 B d^{2} e^{2} f + 48 B f^{3} - 24 C d^{2} e^{3} + 96 C e f^{2} + 9 f x \left (2 d^{2} e \left (2 B f - C e\right ) + 5 f^{2} \left (2 A d^{2} + C\right )\right )\right )}{360 d^{4} f} + \frac{\left (8 A d^{4} e^{2} + 2 A d^{2} f^{2} + 4 B d^{2} e f + 2 C d^{2} e^{2} + C f^{2}\right ) \operatorname{asin}{\left (d x \right )}}{16 d^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((f*x+e)**2*(C*x**2+B*x+A)*(-d*x+1)**(1/2)*(d*x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.456678, size = 243, normalized size = 0.85 \[ \frac{15 \sin ^{-1}(d x) \left (2 d^2 \left (A \left (4 d^2 e^2+f^2\right )+2 B e f\right )+C \left (2 d^2 e^2+f^2\right )\right )-d \sqrt{1-d^2 x^2} \left (-10 A d^2 \left (12 d^2 e^2 x+16 e f \left (d^2 x^2-1\right )+3 f^2 x \left (2 d^2 x^2-1\right )\right )+4 B \left (-2 d^4 x^2 \left (10 e^2+15 e f x+6 f^2 x^2\right )+d^2 \left (20 e^2+15 e f x+4 f^2 x^2\right )+8 f^2\right )+C \left (e^2 \left (30 d^2 x-60 d^4 x^3\right )+32 e f \left (-3 d^4 x^4+d^2 x^2+2\right )+5 f^2 x \left (-8 d^4 x^4+2 d^2 x^2+3\right )\right )\right )}{240 d^5} \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[1 - d*x]*Sqrt[1 + d*x]*(e + f*x)^2*(A + B*x + C*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0.022, size = 652, normalized size = 2.3 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((f*x+e)^2*(C*x^2+B*x+A)*(-d*x+1)^(1/2)*(d*x+1)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.50157, size = 459, normalized size = 1.6 \[ -\frac{{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}} C f^{2} x^{3}}{6 \, d^{2}} + \frac{1}{2} \, \sqrt{-d^{2} x^{2} + 1} A e^{2} x + \frac{A e^{2} \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{2 \, \sqrt{d^{2}}} - \frac{{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}} B e^{2}}{3 \, d^{2}} - \frac{2 \,{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}} A e f}{3 \, d^{2}} - \frac{{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}}{\left (2 \, C e f + B f^{2}\right )} x^{2}}{5 \, d^{2}} - \frac{{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}}{\left (C e^{2} + 2 \, B e f + A f^{2}\right )} x}{4 \, d^{2}} - \frac{{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}} C f^{2} x}{8 \, d^{4}} + \frac{\sqrt{-d^{2} x^{2} + 1}{\left (C e^{2} + 2 \, B e f + A f^{2}\right )} x}{8 \, d^{2}} + \frac{\sqrt{-d^{2} x^{2} + 1} C f^{2} x}{16 \, d^{4}} + \frac{{\left (C e^{2} + 2 \, B e f + A f^{2}\right )} \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{8 \, \sqrt{d^{2}} d^{2}} + \frac{C f^{2} \arcsin \left (\frac{d^{2} x}{\sqrt{d^{2}}}\right )}{16 \, \sqrt{d^{2}} d^{4}} - \frac{2 \,{\left (-d^{2} x^{2} + 1\right )}^{\frac{3}{2}}{\left (2 \, C e f + B f^{2}\right )}}{15 \, d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*sqrt(d*x + 1)*sqrt(-d*x + 1)*(f*x + e)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.24753, size = 1705, normalized size = 5.96 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*sqrt(d*x + 1)*sqrt(-d*x + 1)*(f*x + e)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x+e)**2*(C*x**2+B*x+A)*(-d*x+1)**(1/2)*(d*x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.2736, size = 1, normalized size = 0. \[ \mathit{Done} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)*sqrt(d*x + 1)*sqrt(-d*x + 1)*(f*x + e)^2,x, algorithm="giac")
[Out]